# coding=utf8
import urllib

imageUrl = 'https://d.lanrentuku.com/down/png/2004/yellowicon-cc/yellowicon-cc10.png'
imageFileName = 'image1.png'
# 方法1
# f = open(imageFileName, 'wb')
# res = urllib.urlopen(imageUrl).read()
# f.write(res)
# f.close()
# 方法2
fp = urllib.urlretrieve(imageUrl, imageFileName)
